package com.xueyi.system.deviceManager.domain.dto;

import com.xueyi.system.deviceManager.domain.po.BaseDevicePo;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备信息 数据传输对象
 *
 * @author zlf
 */
public class BaseDeviceDto extends BaseDevicePo {

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("image", getImage())
            .append("brand", getBrand())
            .append("price", getPrice())
            .append("manufacturer", getManufacturer())
            .append("supplier", getSupplier())
            .append("purchaseContract", getPurchaseContract())
            .append("workshop", getWorkshop())
            .append("model", getModel())
            .append("productionDate", getProductionDate())
            .append("admissionDate", getAdmissionDate())
            .append("warrantyPeriod", getWarrantyPeriod())
            .append("specificationDescription", getSpecificationDescription())
            .append("enclosure", getEnclosure())
            .append("workingStatus", getWorkingStatus())
            .append("communicationStatus", getCommunicationStatus())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}